package top.whysu.edevice.po.system;

import top.whysu.edevice.constant.DataDictionary;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 系统账号持久化对象
 */
public class AccountPO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private BigDecimal id;

    /**
     * 账号
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String realname;

    /**
     * 账号状态（1：正常；2：注销）{@link DataDictionary.AccountState}
     */
    private Integer accountState;

    /**
     * 创建人
     */
    private String founder;

    /**
     * 最后一次登录时间
     */
    private Date lastLoginTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除时间-数据库存储时间格式YYYY:mm:dd hh:mm:ss
     */
    private Date deleteTime;

    /**
     * 萤石对应子账号id
     */
    private String ezvizAccountId;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname.trim();
    }

    public Integer getAccountState() {
        return accountState;
    }

    public void setAccountState(Integer accountState) {
        this.accountState = accountState;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getEzvizAccountId() {
        return ezvizAccountId;
    }

    public void setEzvizAccountId(String ezvizAccountId) {
        this.ezvizAccountId = ezvizAccountId;
    }
}
